<template>

		<view>
		      <view style="display:inline-block;margin-right:20px;float: left;">
		     <!-- 品牌一级二级树形数据 这是合并在一张表里的数据-->
		      <uni-table
		      :data="oneTwoData"
		      style="border-collapse:collapse;border:1px outset black;"
		      row-key="id"
		      border
		      stripe
		      :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
		      >
		     <!-- <uni-table-column prop="name" labuni="名称" sortable width="180"></uni-table-column> -->
		    </uni-table>
		      </view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				oneTwoData:[]
			}
		},
		created() {
			this.oneTwo()
		},
		methods: {
			
			    oneTwo(){
				  
				  this.request({url:'/contents/category/lists', method: 'get'}).then(res => {
				  			console.log(res)
				  			this.oneTwoData=res.data.data
				  })
				  
			    }
		}
	}
</script>

<style>

</style>
